﻿namespace ProduceBasicData.Api.DTO.RBACDto
{
    /// <summary>
    /// 操作日志DTO
    /// </summary>
    public class OperLogsDto
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 日志标题
        /// </summary>
        public string? Title { get; set; }

        /// <summary>
        /// 业务类型（0其它，1新增，2修改，3删除）
        /// </summary>
        public string? BusinessType { get; set; }

        /// <summary>
        /// 方法名称
        /// </summary>
        public string? Method { get; set; }

        /// <summary>
        /// 请求方式（GET/POST等）
        /// </summary>
        public string? RequestMethod { get; set; }

        /// <summary>
        /// 操作类别（0其它，1后台用户，2手机端用户，3微信用户，4PC端用户）
        /// </summary>
        public string? OperType { get; set; }

        /// <summary>
        /// 操作人员
        /// </summary>
        public string? OperName { get; set; }

        /// <summary>
        /// 操作URL
        /// </summary>
        public string? OperUrl { get; set; }  // 修正：注释错误

        /// <summary>
        /// 请求参数
        /// </summary>
        public string? OperParam { get; set; }

        /// <summary>
        /// 操作IP地址
        /// </summary>
        public string? OperIp { get; set; }  // 修正：注释错误

        /// <summary>
        /// 操作地点
        /// </summary>
        public string? OperLocation { get; set; }  // 修正：字段名和类型错误

        /// <summary>
        /// 操作结果（0正常，1异常）
        /// </summary>
        public bool State { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool Isdel { get; internal set; }
    }
}
